package cn.xopencode.securityservice.enums.violate;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 反三违事故审核状态枚举
 */
public enum ViolateAuditStatusEnum implements IntArrayValuable {
    FAIL(0, "不通过"),
    PASS(1, "通过"),
    WAIT(2, "待审核");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ViolateAuditStatusEnum::getStatus).toArray();

    /**
     *  状态
     */
    private final Integer status;
    /**
     * 描述
     */
    private final String name;

    ViolateAuditStatusEnum(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
